package com.boot.web.dao;

import com.boot.web.entity.CollageTotalVoucher;
import com.boot.base.dao.BaseDao;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 每日拼团返现余额-new数据层接口
 * @author 【zhouJie】
 * @date 2021-11-30 21:14:52
 */
public interface CollageTotalVoucherDao extends BaseDao<CollageTotalVoucher> {

    CollageTotalVoucher queryByIdsAndTodayTime(@Param("userId") Integer userId, @Param("modeId") Integer modeId, @Param("todayTime") String todayTime);

    List<CollageTotalVoucher> queryByStatus();

    BigDecimal queryByTotalAmount(Integer userId);

}
